package com.Transport.Up;

/**
 * Time    : 2023/3/17 11:11
 * Author  : 王摇摆
 * FileName: Apple.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

/**
* 此实例用来实现向上转型
*
*/

public class Apple extends Fruit {
    @Override
    public void show() {
        System.out.println("this is an apple.");
    }
    public void test(){
        System.out.println("i am an apple");
    }
}
